module(..., package.seeall)
NODE ={
}
NODE._cfd=[==[
accounts=true
]==]
NODE._cds=[===[
	accounts=[==[
_cds=[=[
_patterns={
	{STR,'1-16',[[_pto='@account_test']],_doc={disp="帐号对象"}},
}
]=]
_act=[=[
addaccount={act=function (user,dal,n,act,args)
	local id,name=args.id,args.name
   if(n(id) ~= nil) then 
      return nil,'account exist' 
   end
   child = n:__sure_child(id)
   if child== nil then return 
   	nil, 'error' 
   end
   --[[
   child.id = id
   child.name=name
   child:__save()
   n:__save()
   return true
   --]]--
   local callact=require'zdc.nodeapi'.callact
   return callact(nil,n.__dpl.dal,child,'New',{id=id,name=name})
--   ]]--
end,
_doc={disp='添加一个新的帐号',desc='添加一个新的帐号.'}}
]=]
]==]
]===]


